<template>
    <BlogsView :url="'/api/blog/search'" :keyword="route.query.keyword" />
</template>

<script setup>
import { onMounted, ref } from 'vue';
import BlogsView from './BlogsView.vue';
import BlogsList from '@/components/Blogs/BlogsList.vue';
import { useRoute } from 'vue-router'; // 引入路由

const route = useRoute();

// const searchKeyWord = ref('');


//     searchKeyWord.value = route.query.keyword;
</script>